import ajax from '@/utils/ajax'
import API from '@/api/api'

export default {
    doDept() {
        return ajax.get(API.system.basic.dept);
    },
    doRole() {
        return ajax.get(API.system.basic.role);
    },
    doRoleByType(params) {
        return ajax.get(API.system.basic.roleByType,params);
    },
    doMenu() {
        return ajax.get(API.system.basic.menu);
    },
    doPermsByMenuId(params) {
        return ajax.get(API.system.basic.permsByMenuId,params);
    },
    doPdic(params) {
        return ajax.get(API.system.basic.pDic,params);
    },
    doChildDicByCode(params) {
        return ajax.get(API.system.basic.childDicByCode,params);
    },
}
